import { http } from '@/utils/http'
import { LoginCmd, RegisterCmd } from './type'

export const registerAPI = async (registerCmd: RegisterCmd) => {
  return http<any>({
    url: '/vrs/auth/register',
    method: 'POST',
    data: registerCmd,
  })
}

export const loginAPI = async (loginCmd: LoginCmd) => {
  return http<string>({
    url: '/vrs/auth/login',
    method: 'POST',
    data: loginCmd,
  })
}
